import request from '@/utils/request'

const api = {
  getKpiAbnormalBillsUrl: '/kpi_abnormal/get_kpi_abnormal_bills',
  butieUrl: '/kpi_abnormal/butie',
  butieShenpiUrl: '/kpi_abnormal/butie_shenpi',
  jujueShenpiUrl: '/kpi_abnormal/jujue_shenpi',
}

export async function jujueShenpiApi(params: Map<string, any>) {
  const res = await request({
    url: api.jujueShenpiUrl,
    method: 'post',
    data: params,
  })
  return res
}

export async function butieShenpiApi(params: Map<string, any>) {
  const res = await request({
    url: api.butieShenpiUrl,
    method: 'post',
    data: params,
  })
  return res
}

export async function butieApi(params: Map<string, any>) {
  const res = await request({
    url: api.butieUrl,
    method: 'post',
    data: params,
  })
  return res
}

export async function getKpiAbnormalBillsApi(params: Map<string, any>) {
  const res = await request({
    url: api.getKpiAbnormalBillsUrl,
    method: 'get',
    params: params,
  })
  return res
}
